package com.sls.game.service;

import java.util.List;

import com.sls.core.socket.Head;
import com.sls.core.socket.ServerDisponseException;

/**
 * 
 * @description 商品供应表操作
 * @author Wangxuegang
 * @date 2012-9-18
 * 
 */
public interface GoodsSupplyManageService {

	/**
	 * 分页查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryPageInquire(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 记录新增
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String insert(String body, Head head) throws ServerDisponseException;

	/**
	 * 根据goodsId，查询进价最低的商品
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryMinPriceById(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 根据goodsId，查询进价最低的商品
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryByGoodsId(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 记录更新(修改上下架)
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String update(String body, Head head) throws ServerDisponseException;

	/**
	 * 根据商品编号，查询该商品最高进价
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryHighInPrice(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 修改信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public void updateInfo(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 查询供应商名称列表
	 * 
	 * @return
	 */
	public List<String> querySupplyNameList();
}
